HAL ADC macro migration ¶
This section provides information about the HAL ADC macro migration .
HAL ADC interrupt macros ¶
HAL ADC enable interrupt ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_ENABLE_IT()
|
Removed; use LL_ADC_EnableIT() instead.
|
HAL ADC disable interrupt ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_DISABLE_IT()
|
Removed; use LL_ADC_DisableIT() instead.
|
HAL ADC get interrupt source ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_GET_IT_SOURCE()
|
Removed; use LL_ADC_IsEnabledIT() instead.
|
Related concept: Removal of hardware-related macros in HAL2
HAL ADC convert macros ¶
HAL ADC convert data resolution ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_CONVERT_DATA_RESOLUTION()
|
HAL_ADC_CONVERT_DATA_RESOLUTION(_)
|
HAL ADC digital scale ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_DIGITAL_SCALE()
|
HAL_ADC_DIGITAL_SCALE()
|
Related concept: Removal of underscore prefixes for macros
HAL ADC channel macros ¶
HAL ADC is channel internal ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_IS_CHANNEL_INTERNAL()
|
Removed; use LL_ADC_IS_CHANNEL_INTERNAL() instead.
|
HAL ADC channel to decimal number ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_CHANNEL_TO_DECIMAL_NB()
|
HAL_ADC_CHANNEL_TO_DECIMAL_NB()
|
HAL ADC decimal number to channel ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_DECIMAL_NB_TO_CHANNEL()
|
HAL_ADC_DECIMAL_NB_TO_CHANNEL()
|
Related concept: Removal of underscore prefixes for macros
HAL ADC calculate macros ¶
HAL ADC calculate data to voltage ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_CALC_DATA_TO_VOLTAGE()
|
HAL_ADC_CALC_DATA_TO_VOLTAGE()
|
HAL ADC calculate differential data to voltage ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_CALC_DIFF_DATA_TO_VOLTAGE()
|
HAL_ADC_CALC_DIFF_DATA_TO_VOLTAGE()
|
HAL ADC calculate Vref analog voltage ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_CALC_VREFANALOG_VOLTAGE()
|
HAL_ADC_CALC_VREFANALOG_VOLTAGE()
|
HAL ADC calculate temperature ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_CALC_TEMPERATURE()
|
HAL_ADC_CALC_TEMPERATURE()
|
Related concept: Removal of underscore prefixes for macros
HAL ADC calculate temperature typical parameters ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_CALC_TEMPERATURE_TYP_PARAMS()
|
Removed; use LL_ADC_CALC_TEMPERATURE_TYP_PARAMS() instead.
|
Related concept: Replaced multi-line macros with inline functions
HAL ADC flag macros ¶
HAL ADC get flag ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_GET_FLAG()
|
Removed; use LL_ADC_IsActiveFlag() instead.
|
HAL ADC clear flag ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_CLEAR_FLAG()
|
Removed; use LL_ADC_ClearFlag() instead.
|
Related concept: Removal of hardware-related macros in HAL2
HAL ADC peripheral macros ¶
HAL ADC enable ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_ENABLE()
|
Removed; use LL_ADC_Enable() instead.
|
HAL ADC disable ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_DISABLE()
|
Removed; use LL_ADC_Disable() instead.
|
Related concept: Removal of hardware-related macros in HAL2
HAL ADC force mode independent ¶
|
HAL1 |
HAL2 |
|---|---|
ADC_FORCE_MODE_INDEPENDENT()
|
Removed; use LL_ADC_SetMultimode() instead.
|
Related concept: Removal of hardware-related macros in HAL2
HAL ADC disable internal VBAT path ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_PATH_INTERNAL_VBAT_DISABLE()
|
Removed; use LL_ADC_SetCommonPathInternalCh() instead.
|
Related concept: Removal of hardware-related macros in HAL2
HAL ADC reset handle state ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_RESET_HANDLE_STATE()
|
Removed; use HAL_ADC_DeInit() instead when you need to reset all states)
|
Related concept: Removal of hardware-related macros in HAL2
HAL ADC channel internal to external ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL()
|
Removed; use LL_ADC_CHANNEL_INTERNAL_TO_EXTERNAL() instead.
|
Related concept: Removal of hardware-related macros in HAL2
HAL ADC multimode conversion data master slave ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_MULTI_CONV_DATA_MASTER_SLAVE()
|
Removed; use LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE() instead.
|
Related concept: Removal of hardware-related macros in HAL2
HAL ADC common instance ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_COMMON_INSTANCE()
|
Removed; use ADC_COMMON_INSTANCE() instead.
|
Related concept: Removal of hardware-related macros in HAL2
HAL ADC is enabled all common instance ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE()
|
Removed; use LL_ADC_IsEnabled() instead.
|
Related concept: Removal of hardware-related macros in HAL2
HAL ADC is channel internal available ¶
|
HAL1 |
HAL2 |
|---|---|
__HAL_ADC_IS_CHANNEL_INTERNAL_AVAILABLE()
|
Removed; use LL_ADC_IS_CHANNEL_INTERNAL() instead.
|
Related concept: Removal of hardware-related macros in HAL2